import server from '@/utils/server/server'

const getTypes = async () => {
    let data = await server.get('cate/recList?cid=&ct=')
    return data
}
const getList = async () => {
    let data = await server.get('home/mix')
    return data
}

const getRoom = async (page, path) => {
    let data = await server.get(`room/list?page=${page}&type=${path}`);
    return data
}

const getRoomCopy = async (page, path) => {
    let data = await server.get(`room/list?page=${page}&type=${path}`);
    return data
}
const getMenu = async () => {
    let data = await server.get('cate/list')
    return data
}

export {
    getTypes,
    getList,
    getRoom,
    getRoomCopy,
    getMenu
}